<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Добро пожаловать на корпоративный сайт");
?><?
/*if (mail("zaychenok@vniiaes-asutp.ru","test subject", "test body","From: site@vniiaes-asutp.ru"))
echo "mail work";
else
echo "mail not work";*/
?>
<table cellspacing="0" cellpadding="0" width="100%" class="main-page-table"> 
  <tbody> 
    <tr><td width="22%" valign="top" class="main-page-left-column"> 
        <table width="100%" class="data-table-events"> 
          <tbody> 
            <tr><td class="header">Найти сотрудника</td></tr>
           
            <tr><td class="body"><?$APPLICATION->IncludeComponent(
	"bitrix:intranet.structure.selector",
	"include_area",
	Array(
		"LIST_URL" => "/company/index.php",
		"FILTER_NAME" => "company_search",
		"FILTER_DEPARTMENT_SINGLE" => "Y",
		"FILTER_SESSION" => "N"
	)
);?> <a href="/company/">расширенный поиск</a> <a href="/company/"><img height="7" border="0" width="7" src="/images/icons/arrows.gif" /></a></td></tr>
           </tbody>
         </table>
 <?/*      
        <table width="100%" class="data-table-events"> 
          <tbody> 
            <tr><td class="header">Доска почета</td></tr>
           
            <tr><td class="body"><?$APPLICATION->IncludeComponent(
	"bitrix:intranet.structure.honour",
	"include_area",
	Array(
		"STRUCTURE_PAGE" => "/company/structure.php",
		"PM_URL" => "/company/personal/messages/form/#USER_ID#/",
		"STRUCTURE_FILTER" => "structure",
		"NUM_USERS" => 5
	)
);?> 
                <br />
               <a href="/company/leaders.php">подробнее</a> <a href="/company/leaders.php"><img height="7" border="0" width="7" src="/images/icons/arrows.gif" /></a></td></tr>
           </tbody>
         </table>
 */?>

        <table width="100%" class="data-table-events"> 
          <tbody> 
            <tr><td class="header">Отсутствуют в офисе </td></tr>
           
            <tr><td class="body"><?$APPLICATION->IncludeComponent(
	"bitrix:intranet.structure.informer.absent",
	".default",
	Array(
		"NUM_USERS" => 3,
		"NUM_DAYS" => 5
	)
);?> 
                <br />
               <a href="/company/absence.php">график отсутствий</a> <a href="/company/absence.php"><img height="7" border="0" width="7" src="/images/icons/arrows.gif" /></a> 
                <br />
               </td></tr>
           </tbody>
         </table>
<br />

      
        <table width="100%" class="data-table-events"> 
          <tbody> 
            <tr><td class="header">Дни рождения </td></tr>
           
            <tr><td class="body"><?$APPLICATION->IncludeComponent(
	"bitrix:intranet.structure.birthday.nearest",
	"include_area",
	Array(
		"STRUCTURE_PAGE" => "structure.php",
		"PM_URL" => "/messages/form/#USER_ID#/",
		"STRUCTURE_FILTER" => "structure",
		"NUM_USERS" => 3,
		"AJAX_MODE" => "Y",
		"AJAX_OPTION_SHADOW" => "Y",
		"AJAX_OPTION_JUMP" => "N",
		"AJAX_OPTION_STYLE" => "N",
		"AJAX_OPTION_HISTORY" => "N",
		"SHOW_YEAR" => "M",
		"USER_PROPERTY" => array(0=>"PERSONAL_PHONE",1=>"PERSONAL_MOBILE",2=>"UF_DEPARTMENT",3=>"",)
	)
);?> 
                <br />
               <a href="/company/birthdays.php">дальше</a> <a href="/company/birthdays.php"><img height="7" border="0" width="7" src="/images/icons/arrows.gif" /></a> 
                <br />
               </td></tr>
           </tbody>
         </table>
       
        <table width="100%" class="data-table-events"> 
          <tbody> 
            <tr><td class="header">Новые сотрудники</td></tr>
           
            <tr><td class="body"><?$APPLICATION->IncludeComponent("bitrix:intranet.structure.informer.new", ".default", array(
	"NUM_USERS" => "3",
	"NAME_TEMPLATE" => "#NOBR##LAST_NAME# #NAME##/NOBR#",
	"SHOW_LOGIN" => "Y",
	"PM_URL" => "/company/personal/messages/chat/#USER_ID#/",
	"PATH_TO_CONPANY_DEPARTMENT" => "/company/structure.php?set_filter_structure=Y&structure_UF_DEPARTMENT=#ID#",
	"AJAX_MODE" => "Y",
	"AJAX_OPTION_SHADOW" => "Y",
	"AJAX_OPTION_JUMP" => "N",
	"AJAX_OPTION_STYLE" => "Y",
	"AJAX_OPTION_HISTORY" => "N",
	"CACHE_TYPE" => "N",
	"CACHE_TIME" => "3600",
	"DATE_TIME_FORMAT" => "d.m.Y H:i:s",
	"DEPARTMENT" => "0",
	"SHOW_YEAR" => "M",
	"AJAX_OPTION_ADDITIONAL" => ""
	),
	false,
	array(
	"ACTIVE_COMPONENT" => "Y"
	)
);?> 
                <br />
               <a href="/company/events.php">кадровые перестановки</a> <a href="/company/events.php"><img height="7" border="0" width="7" src="/images/icons/arrows.gif" /></a> 
                <br />
               </td></tr>
           </tbody>
         </table>
       
       		 
        <br />
       		<?$APPLICATION->IncludeComponent(
	"bitrix:socialnetwork.events_dyn",
	".default",
	Array(
		"PATH_TO_USER" => "/company/personal/user/#user_id#/",
		"PATH_TO_GROUP" => "/company/personal/group/#group_id#/",
		"PATH_TO_MESSAGE_FORM" => "/company/personal/messages/form/#user_id#/",
		"PATH_TO_MESSAGE_FORM_MESS" => "/company/personal/messages/form/#user_id#/#message_id#/",
		"PATH_TO_MESSAGES_CHAT" => "/company/personal/messages/chat/#user_id#/",
		"PATH_TO_SMILE" => "/bitrix/images/socialnetwork/smile/",
		"MESSAGE_VAR" => "message_id",
		"PAGE_VAR" => "page",
		"USER_VAR" => "user_id"
	)
);?> 
<!--div align="center" style="padding-bottom: 9px;"><a href="/company/novice.php" ><img height="242" width="173" border="0" src="/images/company/about/new.jpg" title="Информация для новых сотрудников" /></a></div-->
 
        <table width="100%" class="data-table-events"> 
          <tbody> 
            <tr><td class="header">Погода</td></tr>
           
            <tr><td class="body"><a href="http://clck.yandex.ru/redir/dtype=stred/pid=7/cid=1228/*http://weather.yandex.ru/index.xml?city=27612"><img border="0" alt="Яндекс.Погода" src="http://info.weather.yandex.net/informer/200x100/27612.png" /><img height="1" border="0" width="1" alt="" src="http://clck.yandex.ru/click/dtype=stred/pid=7/cid=1227/*http://img.yandex.ru/i/pix.gif" /></a></td></tr>
           </tbody>
         </table>
       
        <table width="100%" class="data-table-events"> 
          <tbody> 
            <tr><td class="header">Пробки</td></tr>
           
            <tr><td class="body"><a style="background-image: url(http://clck.yandex.ru/click/dtype=stred/pid=30/cid=529/*http://ya.ru);" href="http://clck.yandex.ru/redir/dtype=stred/pid=30/cid=533/*http://maps.yandex.ru/moscow_traffic"><img border="0" alt="Пробки на Яндекс.Картах" src="http://info.maps.yandex.net/traffic/moscow/current_traffic_234.gif" /></a></td></tr>
           </tbody>
         </table>
       </td><td width="10"> 
        <div style="width: 10px;"></div>
       
        <br />
       </td><td valign="top" class="main-page-center-column"> 
		<div align="center">
			<?$APPLICATION->IncludeComponent(
					"bitrix:advertising.banner",
					"",
					Array(
						"TYPE" => "468x60_TOP", 
						"CACHE_TYPE" => "A", 
						"CACHE_TIME" => "0" 
					)
				);?>
		</div>
        <table width="100%" class="data-table-news"> 
          <tbody> 
            <tr><td class="header">Официальная информация</td></tr>
           
            <tr><td class="body"><?$APPLICATION->IncludeComponent(
	"bitrix:news.list",
	"official",
	Array(
		"IBLOCK_TYPE" => "news",
		"IBLOCK_ID" => "2",
		"NEWS_COUNT" => "15",
		"SORT_BY1" => "ACTIVE_FROM",
		"SORT_ORDER1" => "DESC",
		"SORT_BY2" => "ID",
		"SORT_ORDER2" => "DESC",
		"FILTER_NAME" => "",
		"FIELD_CODE" => array(0=>"",1=>"",),
		"PROPERTY_CODE" => array(0=>"DOC_TYPE",1=>"",),
		"CHECK_DATES" => "Y",
		"DETAIL_URL" => "/about/official.php?ID=#ELEMENT_ID#",
		"AJAX_MODE" => "N",
		"AJAX_OPTION_SHADOW" => "Y",
		"AJAX_OPTION_JUMP" => "N",
		"AJAX_OPTION_STYLE" => "Y",
		"AJAX_OPTION_HISTORY" => "N",
		"CACHE_TYPE" => "A",
		"CACHE_TIME" => "3600",
		"CACHE_FILTER" => "N",
		"PREVIEW_TRUNCATE_LEN" => "",
		"ACTIVE_DATE_FORMAT" => "d.m.Y",
		"DISPLAY_PANEL" => "N",
		"SET_TITLE" => "N",
		"INCLUDE_IBLOCK_INTO_CHAIN" => "N",
		"ADD_SECTIONS_CHAIN" => "N",
		"HIDE_LINK_WHEN_NO_DETAIL" => "N",
		"PARENT_SECTION" => "",
		"PARENT_SECTION_CODE" => "",
		"DISPLAY_TOP_PAGER" => "N",
		"DISPLAY_BOTTOM_PAGER" => "N",
		"PAGER_TITLE" => "Новости",
		"PAGER_SHOW_ALWAYS" => "N",
		"PAGER_TEMPLATE" => "",
		"PAGER_DESC_NUMBERING" => "N",
		"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
		"DISPLAY_DATE" => "Y",
		"DISPLAY_NAME" => "Y",
		"DISPLAY_PICTURE" => "Y",
		"DISPLAY_PREVIEW_TEXT" => "Y",
		"AJAX_OPTION_ADDITIONAL" => ""
	)
);?> 
                <br />
               
                <div align="right"><a href="/about/index.php">подробнее</a> <a href="/about/index.php"><img height="7" border="0" width="7" src="/images/icons/arrows.gif" /></a> 
                  <br />
                 </div>
               </td></tr>
           </tbody>
         </table>
       
 <?/*       <table width="100%" class="data-table-news"> 
          <tbody> 
            <tr><td class="header">Наша жизнь</td></tr>
           
            <tr><td class="body"><?$APPLICATION->IncludeComponent(
	"bitrix:news.list",
	"table",
	Array(
		"IBLOCK_TYPE" => "news",
		"IBLOCK_ID" => 1,
		"NEWS_COUNT" => 5,
		"SORT_BY1" => "ACTIVE_FROM",
		"SORT_ORDER1" => "DESC",
		"SORT_BY2" => "ID",
		"SORT_ORDER2" => "DESC",
		"FILTER_NAME" => "",
		"FIELD_CODE" => array(0=>"",1=>"",2=>"",),
		"PROPERTY_CODE" => array(0=>"",1=>"",2=>"",),
		"DETAIL_URL" => "/about/life.php?ID=#ELEMENT_ID#",
		"AJAX_MODE" => "N",
		"AJAX_OPTION_SHADOW" => "N",
		"AJAX_OPTION_JUMP" => "N",
		"AJAX_OPTION_STYLE" => "N",
		"AJAX_OPTION_HISTORY" => "N",
		"CACHE_TYPE" => "A",
		"CACHE_TIME" => 3600,
		"CACHE_FILTER" => "N",
		"PREVIEW_TRUNCATE_LEN" => "",
		"ACTIVE_DATE_FORMAT" => "d.m.Y",
		"DISPLAY_PANEL" => "N",
		"SET_TITLE" => "N",
		"INCLUDE_IBLOCK_INTO_CHAIN" => "N",
		"ADD_SECTIONS_CHAIN" => "N",
		"HIDE_LINK_WHEN_NO_DETAIL" => "N",
		"PARENT_SECTION" => "",
		"DISPLAY_TOP_PAGER" => "N",
		"DISPLAY_BOTTOM_PAGER" => "N",
		"PAGER_TITLE" => "Новости",
		"PAGER_SHOW_ALWAYS" => "N",
		"PAGER_TEMPLATE" => "",
		"PAGER_DESC_NUMBERING" => "N",
		"PAGER_DESC_NUMBERING_CACHE_TIME" => 36000,
		"DISPLAY_DATE" => "Y",
		"DISPLAY_NAME" => "Y",
		"DISPLAY_PICTURE" => "Y",
		"DISPLAY_PREVIEW_TEXT" => "Y",
		"bxpiwidth" => 693
	)
);?> 
                <br />
               
                <div align="right"><a href="/about/life.php">подробнее</a> <a href="/about/life.php"><img height="7" border="0" width="7" src="/images/icons/arrows.gif" /></a> 
                  <br />
                 </div>
               </td></tr>
           </tbody>
         </table>     
        <br />*/?>
       </td><td width="10"> 
        <div style="width: 10px;"></div>
       
        <br />
       </td> <td width="22%" valign="top" class="main-page-right-column"> 
        <table width="100%" class="data-table-communication"> 
          <tbody> 
            <tr><td class="header">Рабочие группы</td></tr>
           
            <tr><td class="body"><?$APPLICATION->IncludeComponent(
	"bitrix:socialnetwork.group_top",
	"div",
	Array(
		"GROUP_VAR" => "group_id",
		"PATH_TO_GROUP" => "/workgroups/group/#group_id#/",
		"PATH_TO_GROUP_SEARCH" => "/workgroups/",
		"ITEMS_COUNT" => 4,
		"DATE_TIME_FORMAT" => "d.m.Y H:i:s",
		"DISPLAY_IMAGE" => "N",
		"DISPLAY_DESCRIPTION" => "N",
		"DISPLAY_NUMBER_OF_MEMBERS" => "Y",
		"DISPLAY_SUBJECT" => "Y",
		"CACHE_TIME" => 180
	)
);?></td></tr>
           </tbody>
         </table>
                 

        <table width="100%" class="data-table-communication"> 
          <tbody> 
            <tr><td class="header">Последние документы</td></tr>
           
            <tr><td class="body"><?$APPLICATION->IncludeComponent(
	"bitrix:webdav.list",
	".default",
	Array(
		"IBLOCK_TYPE"	=> "library",
		"IBLOCK_ID"	=>	"21",
		"DOCS_COUNT" => "5",
		"DETAIL_URL" => "/docs/shared/element/view/#ELEMENT_ID#/",
		"DISPLAY_DATE" => "Y",
		"DISPLAY_PICTURE" => "Y",
		"DISPLAY_PREVIEW_TEXT" => "Y",
		"CACHE_TYPE" => "A",
		"CACHE_TIME" => "3600",

		"SORT_BY1" => "TIMESTAMP_X",
		"SORT_ORDER1" => "DESC",
		"SORT_BY2" => "SORT",
		"SORT_ORDER2" => "ASC",
		"FILTER_NAME" => "",
		"FIELD_CODE" => array(0=>"TIMESTAMP_X",1=>"",2=>"",),
		"PROPERTY_CODE" => array(0=>"",1=>"",2=>"",),
		"AJAX_MODE" => "N",
		"AJAX_OPTION_SHADOW" => "Y",
		"AJAX_OPTION_JUMP" => "N",
		"AJAX_OPTION_STYLE" => "Y",
		"AJAX_OPTION_HISTORY" => "N",
		"CACHE_FILTER" => "N",
		"PREVIEW_TRUNCATE_LEN" => "",
		"ACTIVE_DATE_FORMAT" => "d.m.Y",
		"DISPLAY_PANEL" => "N",
		"SET_TITLE" => "N",
		"INCLUDE_IBLOCK_INTO_CHAIN" => "Y",
		"ADD_SECTIONS_CHAIN" => "Y",
		"HIDE_LINK_WHEN_NO_DETAIL" => "N",
		"PARENT_SECTION" => "",
		"DISPLAY_TOP_PAGER" => "N",
		"DISPLAY_BOTTOM_PAGER" => "N",
		"PAGER_TITLE" => "",
		"PAGER_SHOW_ALWAYS" => "N",
		"PAGER_TEMPLATE" => "",
		"PAGER_DESC_NUMBERING" => "N",
		"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
		"DISPLAY_NAME" => "Y",
	),
	false,
	Array("HIDE_ICONS"=>"N")
);?>
                <br />
               </td></tr>
           </tbody>
         </table>

        <table width="100%" class="data-table-communication"> 
          <tbody> 
            <tr><td class="header">Доска объявлений</td></tr>
           
            <tr><td class="body">
 <?$APPLICATION->IncludeComponent("vniiaes:board.line", "main", array(
	"IBLOCK_TYPE" => "services",
	"IBLOCK_ID" => "8",
	"COUNT" => "5",
	"CACHE_TYPE" => "A",
	"CACHE_TIME" => "3600"
	),
	false
);
	?>
                <br />
               
                <div align="left"><a href="/community/board/">доска объявлений</a> <a href="/community/board/"><img height="7" border="0" width="7" src="/images/icons/arrows.gif" /></a> 
                  <br />
                 </div>
               </td></tr>
           </tbody>
         </table>   
       
        <table width="100%" class="data-table-communication"> 
          <tbody> 
            <tr><td class="header">Выскажи мнение </td></tr>
           
            <tr><td class="body"><?$APPLICATION->IncludeComponent(
	"bitrix:voting.current",
	"main_page",
	Array(
		"CHANNEL_SID" => "COMPANY",
		"AJAX_MODE" => "N",
		"AJAX_OPTION_SHADOW" => "N",
		"AJAX_OPTION_JUMP" => "N",
		"AJAX_OPTION_STYLE" => "N",
		"AJAX_OPTION_HISTORY" => "N",
		"CACHE_TYPE" => "A",
		"CACHE_TIME" => 3600
	)
);?> 
                <br />
               <a href="/services/votes.php">опросы</a> <a href="/services/votes.php"><img height="7" border="0" width="7" src="/images/icons/arrows.gif" /></a> 
                <br />
               </td></tr>
           </tbody>
         </table>

        <table width="100%" class="data-table-communication"> 
          <tbody> 
            <tr><td class="header">События компании</td></tr>
           
            <tr><td class="body"><?$APPLICATION->IncludeComponent(
	"bitrix:intranet.event_calendar",
	"",
	Array(
		"IBLOCK_TYPE" => "events",
		"IBLOCK_ID" => 13,
		"INIT_DATE" => "",
		"EVENT_LIST_MODE" => "Y",
		"DETAIL_URL" => "/about/calendar.php",
		"EVENTS_COUNT" => 5,
		"LOAD_MODE" => "ajax",
		"CACHE_TIME" => 3600
	)
);?> 
                <br />
               
                <div align="left"><a href="/about/calendar.php">календарь событий</a> <a href="/about/calendar.php"><img height="7" border="0" width="7" src="/images/icons/arrows.gif" /></a> 
                  <br />
                 </div>
               </td></tr>
           </tbody>
         </table>
       
        <table width="100%" class="data-table-communication"> 
          <tbody> 
            <tr><td class="header">Ссылки</td></tr>
           
            <tr><td class="body"><img hspace="2" height="3" width="3" vspace="2" src="/images/icons/bullet_dot.gif" /> <a href="http://www.vniiaes.ru" target="_blank">Сайт ОАО &laquo;ВНИИАЭС&raquo;</a> 
                <br />
               
                <br />
               <img hspace="2" height="3" width="3" vspace="2" src="/images/icons/bullet_dot.gif" /> <a href="http://yandex.ru" target="_blank">Поиск информации</a></td></tr>
           </tbody>
         </table>
       </td></tr>
   </tbody>
 </table>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>